<?php include_once($_SERVER['DOCUMENT_ROOT']."/controller/common/common_setting_unit.php"); ?>

<?php


$theme = serialize($_REQUEST['theme']);

$detail   = select_one_line_all_items($table_Prefix."theme_set", ""); 

if($detail){
	$sql = "update ".$table_Prefix."theme_set SET theme_data  = '$theme' ";

}
else{
	$sql = "insert into  ".$table_Prefix."theme_set (theme_data) VALUES ('$theme') ";
}

sql_log($sql);
$query = mysql_query($sql) or die ("error:".mysql_error());
mysql_close($con);


?>




<script type="text/javascript">
    alert("输入信息已保存，点击确认返回继续操作.");
    document.location.href = "edit.php?sys_part=theme_set";
</script>










